package componentes;

import java.util.EnumSet;

import model.Bet;
import model.Role;

public class RoleBetFilter  implements IBetFilter<Role>{

	public boolean isContain(Bet bet, EnumSet<Role> enumSet) {
		boolean isContainStatus = false;
		for (Role role : enumSet) {
			if (bet.getRole().equals(role)){
				isContainStatus = true;
			}
		} 
		return isContainStatus;
	}

}
